package c.h.a.b0;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.ProgressBar;
import androidx.appcompat.app.AlertController;
import androidx.appcompat.app.AppCompatActivity;
import b.b.c.f.a;
import b.l.a.b;
import c.h.a.m0.h;

/* compiled from: LoadingDialog */
public class m extends b {
    public static m q0(AppCompatActivity appCompatActivity) {
        m mVar = new m();
        mVar.o0(true);
        mVar.p0(appCompatActivity.o(), mVar.toString());
        return mVar;
    }

    public Dialog n0(Bundle bundle) {
        Context Z = Z();
        boolean z = h.a;
        ProgressBar progressBar = new ProgressBar(Z);
        int t = h.t(20.0f, progressBar.getResources().getDisplayMetrics());
        progressBar.setPadding(t, t, t, t);
        a aVar = new a(Z);
        AlertController.b bVar = aVar.a;
        bVar.t = progressBar;
        bVar.s = 0;
        aVar.e(2131690052);
        aVar.a.m = false;
        return aVar.a();
    }
}
